﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Prototype_Game_1
{
    class AutomatedColorSprite : Sprite
    {
        public AutomatedColorSprite(string name, Texture2D textureImage, Vector2 position,
            Point size, int collisionOffset,
            Vector2 speed)
            : base(name, textureImage, position, size, collisionOffset, speed) { }
        
        public override Vector2 direction
        {
            get { return speed; }
        }

        public override void Update(GameTime gameTime, Rectangle clientBounds)
        {
            position += direction;
            base.Update(gameTime, clientBounds);
        }
    }
}
